Channel

class Channel : GeneratedMessage, ChannelProtos.ChannelOrBuilder

A pair of a channel number, mode and the (sharable) settings for that channel
Protobuf type meshtastic.Channel

Types

Link copied to clipboard
class Builder : GeneratedMessage.Builder<BuilderT> , ChannelProtos.ChannelOrBuilder

A pair of a channel number, mode and the (sharable) settings for that channel
Protobuf type meshtastic.Channel
Link copied to clipboard
enum Role : ProtocolMessageEnum

How this channel is being used (or not).
Note: this field is an enum to give us options for the future.
In particular, someday we might make a 'SCANNING' option.
SCANNING channels could have different frequencies and the radio would
occasionally check that freq to see if anything is being transmitted.
For devices that have multiple physical radios attached, we could keep multiple PRIMARY/SCANNING channels active at once to allow
cross band routing as needed.
If a device has only a single radio (the common case) only one channel can be PRIMARY at a time
(but any number of SECONDARY channels can't be sent received on that common frequency)
Protobuf enum meshtastic.Channel.Role

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
Link copied to clipboard
fun getDescriptor(): Descriptors.Descriptor
Link copied to clipboard
open fun getIndex(): Int

The index of this channel in the channel table (from 0 to MAX_NUM_CHANNELS-1)
(Someday - not currently implemented) An index of -1 could be used to mean "set by name",
in which case the target node will find and set the channel by settings.name.
int32 index = 1;
Link copied to clipboard
Link copied to clipboard

TODO: REPLACE
.meshtastic.Channel.Role role = 3;
Link copied to clipboard
open fun getRoleValue(): Int

TODO: REPLACE
.meshtastic.Channel.Role role = 3;
Link copied to clipboard
Link copied to clipboard

The new settings, or NULL to disable that channel
.meshtastic.ChannelSettings settings = 2;
Link copied to clipboard

The new settings, or NULL to disable that channel
.meshtastic.ChannelSettings settings = 2;
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun hasSettings(): Boolean

The new settings, or NULL to disable that channel
.meshtastic.ChannelSettings settings = 2;
Link copied to clipboard
Link copied to clipboard
open fun parseDelimitedFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): ChannelProtos.Channel
Link copied to clipboard
open fun parseFrom(data: ByteString): ChannelProtos.Channel
open fun parseFrom(input: CodedInputStream): ChannelProtos.Channel
open fun parseFrom(data: Array<Byte>, extensionRegistry: ExtensionRegistryLite): ChannelProtos.Channel
open fun parseFrom(data: ByteString, extensionRegistry: ExtensionRegistryLite): ChannelProtos.Channel
open fun parseFrom(input: CodedInputStream, extensionRegistry: ExtensionRegistryLite): ChannelProtos.Channel
open fun parseFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): ChannelProtos.Channel
open fun parseFrom(data: ByteBuffer, extensionRegistry: ExtensionRegistryLite): ChannelProtos.Channel
Link copied to clipboard
open fun parser(): Parser<ChannelProtos.Channel>
Link copied to clipboard
Link copied to clipboard
open fun writeTo(output: CodedOutputStream)